package com.jiangyg.mall.ware.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：仓库信息
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-30 07:41:17
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class WareInfoDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Long id;

	/**
	 * 仓库名
	 */
	@NotNull
	@Length(min = 1, max = 50)
	private String name;

	/**
	 * 仓库地址
	 */
	@NotNull
	@Length(min = 2, max = 128)
	private String address;

	/**
	 * 区域编码
	 */
	@NotNull
	@Length(min = 2, max = 20)
	private String areacode;

}
